/*
 * Copyright 2000-2015 JetBrains s.r.o.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#workspace-container{
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
}

#program-output {
    display: flex;
}

#grid-bottom {
    height: 247px;
    top: 0 !important;
    display: flex;
    flex-direction: column;
}

#result-tabs {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
}

.ui-tabs-panel {
    flex-grow: 1;
    min-height: 0;
    height: auto !important;
}

.result-tabs-footer {
    text-align: center;
    border-top: 1px solid;
    border-color: #969696;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    height: 28px;
}

.ui-tabs .ui-tabs-nav li.ui-state-active {
    margin: 0;
    padding: 0 6px;
    background-color: #cfcfcf;
}

.ui-tabs .ui-tabs-panel {
    padding: 0;
}

.ui-tabs .ui-tabs-nav {
    float: left;
    text-align: center;
    text-decoration: none;
    position: relative;
    margin-left: 3px;
    margin-bottom: 3px;
}

.ui-tabs .ui-tabs-nav li {
    color: #000000;
    font-size: 14px;
    background-color: #f0f0f0;
    padding: 0 6px;
    line-height: 22px;
    border: 0 solid #969696;
    border-bottom-width: 1px;
    border-left-width: 1px;
    display: inline-block;
    cursor: default;
    margin: 0;
}

.ui-tabs .ui-tabs-nav li:first-child {
    border-bottom-left-radius: 4px;
}

.ui-tabs .ui-tabs-nav li:last-child {
    border-bottom-right-radius: 4px;
    border-right-width: 1px;
}

.ui-tabs .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor {
    cursor: pointer;
}

.ui-tabs .ui-tabs-nav .ui-tabs-anchor {
    padding: 0;
    color: #000000;
    text-decoration: none;
}

.kotlin-info {
    float: right;
    display: flex;
    align-items: center;
    height: 100%;
    font-size: 14px;
    padding: 0 10px;
    color: #000000;
}

#webdemo-kotlin-version-button {
    margin-left: 5px;
}

#statusBarWrapper {
    font-family: menlo, consolas, monospace;
    background-image: -moz-linear-gradient(#f7f7f7, #f0f0f0);
    background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#f7f7f7), to(#f0f0f0));
    background-image: -webkit-linear-gradient(#f7f7f7, #f0f0f0);
    background-image: -o-linear-gradient(#f7f7f7, #f0f0f0);
    background-color: #f7f7f7;
    border-top: 1px solid #969696;
}

#statusBar {
    float: left;
    font-size: 12px;
    padding: 10px;
    color: #9e9e9e;
}

.consoleOutput {
    overflow: auto;
    padding-left: 5px;
    flex-grow: 1;
}

#typeCheckingWrapper {
    margin-top: 10px;
    margin-right: 4px;
    float: right;
}

#typeCheckingWrapper input {
    float: left;
    margin-right: 4px;
}

#typeCheckingWrapper .text {
    display: inline-block;
    font-size: 12px;
    color: #222222;
}

.tab-space {
    position: relative;
    cursor: default;
    font-size: 12px;
    font-family: menlo, consolas, monospace;
    white-space: pre;
    height: 185px;
    line-height: 1.4;
}

.tab-space .scroll {
    overflow: auto;
    height: 100%;
}

#problems {
    overflow: auto;
}

.result-view {
    padding: 4px;
}

.result-view a {
    cursor: pointer;
    color: #7a7a7a;
}

.consoleViewError {
    white-space: pre;
    color: #ff0000 !important;
    margin: 0;
    vertical-align: top;
}

.error-output {
    white-space: pre-wrap;
    color: #ff0000 !important;
    min-height: 1.4em;
    margin: 0;
    vertical-align: top;
}

.standard-output {
    white-space: pre;
    color: #000 !important;
    min-height: 1.4em;
    margin: 0;
    vertical-align: top;
}

.consoleViewInfo {
    color: #0000ff !important;
    margin: 0;
    vertical-align: top;
}

.problemsViewError, .problemsViewWarning {
    padding-left: 25px;
    margin: 0;
    line-height: 16px;
    vertical-align: top;
}



#problems-tree {
    outline: none;
}

#problems-tree .text {
    display: block;
    padding-left: 20px;
    top: 1px;
    white-space: pre-wrap;
    word-break: break-all;
}

#problems-tree .file-problems-header .text {
    display: inline-block;
    padding-left: 0;
    bottom: 1px;
    padding-bottom: 0;
}

#problems-tree li {
    outline: none;
}

#problems-tree .tree-node .error.icon {
    float: left;
    margin-right: 4px;
    margin-left: 0;
    top: 1px;
    background: url("/static/images/icons_all_sprite.svg") no-repeat -150px -500px;
}

#problems-tree .tree-node .warning.icon {
    float: left;
    margin-left: 0;
    margin-right: 4px;
    top: 1px;
    background: url("/static/images/icons_all_sprite.svg") no-repeat -150px -600px;
}

#console, #generated-code {
    font-family: monospace;
}

#generated-code {
    overflow: auto;
}

#generated-code > p {
    padding-left: 5px;
}

#test {
    overflow: hidden;
    position: relative;
    white-space: normal;
    padding: 0;
}

#test-tree-div {
    overflow: auto;
    font-size: 12px;
    float: left;
    width: 25%;
    border-right: 1px solid #969696;
    box-sizing: border-box;
}

#test-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

#test-console {
    font-size: 12px;
    overflow: auto;
    display: block;
    white-space: pre;
}

#tests-status-bar {
    float: right;
    font-size: 0;
    padding: 1px;
    border: solid 1px #969696;
    border-radius: 3px;
    width: 50%;
}

#tests-status-bar .background {
    height: 11px;
}

#tests-status-bar .background.ok {
    background: url("/static/images/progressbar-ok.svg") repeat-x;
}

#tests-status-bar .background.fail {
    background: url("/static/images/progressBar-fail.svg") repeat-x;
}

#unit-test-statistic {
    background-color: #e8e8e8;
    padding: 3px 3px 3px 7px;
}

.consoleOutput .link {
    display: inline-block;
    cursor: pointer;
    color: #497bb7;
    text-decoration: underline;
}

#unit-test-statistic span {
    float: left;
}

#test-tree .ui-accordion-header {
    outline: none;
    cursor: pointer;
    padding-top: 6px;
    padding-bottom: 6px;
}

#test-tree .ui-accordion-icon {
    display: none;
}

#test-tree .header-text {
    display: inline-block;
    color: #3164a0;
}

.test-case {
    padding-left: 30px;
}

.tree-node .icon {
    float: left;
    top: 2px;
    height: 12px;
    width: 12px;
    margin-left: 4px;
    margin-right: 4px;
    display: inline-block;
}

#test-tree {
    outline: none;
}

#test-tree-div ul {
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
}

li[aria-level="2"] > .tree-node-header {
    padding-left: 33px;
}

li[aria-level="3"] > .tree-node-header {
    padding-left: 66px;
}

li[aria-selected="true"] > .tree-node-header {
    background-color: #d8d8d8;
}

li[aria-expanded="false"] > ul {
    display: none;
}

.tree-node-header {
    overflow: hidden;
    padding-top: 1px;
    padding-bottom: 1px;
    line-height: 1;
    position: relative;
}

.tree-node-header .icon.ok {
    background: url("/static/images/icons_all_sprite.svg") no-repeat -150px -450px;
}

.tree-node-header .icon.error {
    background: url("/static/images/icons_all_sprite.svg") no-repeat -150px -500px;
}

.tree-node-header .icon.fail {
    background: url("/static/images/icons_all_sprite.svg") no-repeat -150px -550px;
}

.tree-node-header .toggle-arrow {
    float: left;
    display: inline-block;
}

.tree-node-header .text {
    display: inline-block;
    position: relative;
    padding-bottom: 2px;
}

.tree-node .kotlin-file-icon {
    height: 14px;
    width: 14px;
    background: url("/static/images/kotlin_file.svg");
}